<?php

class IndexController extends Zend_Controller_Action
{	
	protected $_cartModel;

    public function init()
    {
    	$this->_cartModel = new Model_Cart();
    }

    public function indexAction()
    {
		var_dump($this->_cartModel);
    }
    
    public function addAction()
    {
    	if(isset($_REQUEST))
    	{
    		$id = $_REQUEST['id'];
    		$qnty = $_REQUEST['qnty'];
    	}
    	var_dump($this->_cartModel->addCartItem($id, $qnty));
    }
    
    public function viewAction()
    {
    	$this->view->cartModel = $this->_cartmodel;
    }
    

}

